console.log(["aaa"].some(ele=>ele==="aaa"));



let aaa={bbb:"bbb"}

aaa.ddd = function(ccc){
    console.log(this.bbb+""+ccc);
}

let kkk={kk:"dkkkk"}
kkk.ss = function (ffunc){
    ffunc(this.kk);
}
kkk.ss(ele=>aaa.ddd(ele));


function any(arr,func){
    func("sss");

    // return arr.filter(function(ele){
    //     return func(ele)
    // }).length>0;

    return arr.filter(ele=>func(ele)).length>0;
}

let ccc ={cc:"ccc1"}
ccc.aas = function(ele){
    return this.cc===ele;
}

any(["ssss"],ele=>ccc.aas(ele))
